import { defineStore } from 'pinia'
import { ref } from 'vue'
import { useLocalStorage  } from '@vueuse/core'

export const useTest1Store = defineStore('yjy-test1', () => {
  const ls  = useLocalStorage('local','')
  const setLs = (newLs)=>{
    ls.value = newLs
  }

  const removeLs = () => {
    ls.value = ''
  }

  return {
    ls,
    setLs,
    removeLs
  }
})

